import request from '@/utils/request'
import qs from 'qs'

/** *******************        poetry-poet          ********************/

export function fetchAuthorList(query) {
  return request({
    url: '/poetry/poet/list',
    method: 'get',
    params: query
  })
}

/** *******************        poetry-poem          ********************/

export function fetchPoetList(query) {
  return request({
    url: '/poetry/poem/list',
    method: 'get',
    params: query
  })
}

/** *******************        poetry-quote          ********************/

export function fetchQuoteList(query) {
  return request({
    url: '/poetry/quote/list',
    method: 'get',
    params: query
  })
}

/** *******************        poetry-tang300          ********************/

/** 列表 */
export function fetchTang300List(query) {
  return request({
    url: '/poetry/tang300/list',
    method: 'get',
    params: query
  })
}

/** 【唐诗300首】缓存 */
export function tang300Cache() {
  return request({
    url: '/poetry/tang300/cache',
    method: 'get'
  })
}

/** 【唐诗300首】今日古诗 */
export function tang300Today() {
  return request({
    url: '/poetry/tang300/today',
    method: 'get'
  })
}
